//
//  HPSyncService.h
//  LockTest
//
//  Created by ZhangBo on 2018/12/2.
//  Copyright © 2018 ZhangBo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ReactiveObjC/ReactiveObjC.h>

NS_ASSUME_NONNULL_BEGIN

@class HPUser;

@interface HPSyncService : NSObject

+ (HPSyncService *)sharedInstance;

- (void)fetchType:(NSString *)type userid:(NSString *)userId completion:(void (^)(NSDictionary *))completion;

- (void)updateType:(NSString *)type completion:(void (^)(NSDictionary *))completion;

- (RACSignal *)loadType:(NSString *)type withId:(NSString *)userId;

- (RACSignal *)updateType:(NSString *)type withId:(NSString *)userId value:(HPUser *)user;

@end

NS_ASSUME_NONNULL_END
